<?php

namespace app\test\controller;

use app\test\model\Users;
use think\Controller;
use think\Session;
use think\Request;

class Index extends Controller
{

//	public function index()
//	{
//		echo password_hash("d63dc919e201d7bc4c825630d2cf25fdc93d4b2f0d46706d29038d01",PASSWORD_DEFAULT);
//	}

	public function index(Request $request)
	{
//		$a = new Users();
//		$res = $a->index();
//		dump($res);
		$arr = [
			'主页',
			'员工管理' => ['添加员工', '信息更新'],
			'值班签到' => ['值班表', '换班申请', '结果查询'],
		];
		dump(json_encode($arr,JSON_UNESCAPED_UNICODE));
//		$post = $request->post();
//		echo $this->validate($post,[
//			'captcha|验证码'=>'require|captcha'
//		]);
	}
}
